package com.gakj.truck.third.api.mapper;

import com.gakj.truck.third.core.annotation.MyBatisMapper;
import com.gakj.truck.third.core.domain.TruckImgDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by gc on 2016/5/10.
 */
@MyBatisMapper
public interface TruckImgDtoMapper {

    List<TruckImgDto> getAllList(@Param(value = "truckId") Long truckId);

    void deleteByTruckid(@Param(value = "truckid") Long truckid);

    void deleteByid(@Param(value = "id") Long id);

    Long save(TruckImgDto imgDto);

    void batchSave(List<TruckImgDto> imgDtos);
}
